package com.youlai.system.common.enums;

import com.youlai.system.common.base.IBaseEnum;
import lombok.Getter;

/**
 * 任务状态枚举
 *
 * @author leorain
 * @since 2024/02/14
 */
public enum TaskStatusEnum implements IBaseEnum<Integer> {

    EXECUTING(1, "执行中"),
    SUCCESS (2, "执行成功"),
    FAILURE(3, "执行失败");

    @Getter
    private Integer value;

    @Getter
    private String label;

    TaskStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }
}
